package com.system.mapper;

import com.system.po.Plan;

import java.util.List;

public interface PlanMapper {
    //查询planList
    List<Plan> selectPlanList();

    //根据planid查询plan
    Plan selectPlanByPlanId(Integer planId);

    //修改数据
    Boolean updatePlanByPlanId(Plan plan);

    //添加plan数据
    Boolean addPlan(Plan plan);

    //添加plan数据并返回主键id
    Plan addPlanAndReturnPlanId(Plan plan);

    //根据id删除plan
    Boolean deletePlanById(Integer planId);

    //根据父节点parentid查询子数据list
    List<Plan> selectPlanListChildrenByParentId(Integer parentId);

}
